<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
<!-- 标题 -->
<div class="page-heade">
    <h2 class="title_color text-center">活动拜访详情</h2>
</div>
<!-- 标题 -->
<div>
    <form action="" class="form-inline">
        <table class="row-margin-top tab-content table-bordered table text-left" border="1">
            <tr>
                <td style="min-width: 140px;width: 140px" class="text-right"><label for=""
                                                                                    class="form-label">签到人员：</label>
                </td>
                <td>{$data.hbr_xm}，{$data.hbr_bm} ({$data.hbr_gw})</td>
            </tr>
            <tr>
                <td class="text-right"><label for="" class="form-label">活动类型：</label></td>
                <td>{$data.sqlx}</td>
            </tr>
            <tr>
                <td class="text-right"><label for="" class="form-label">网点名称：</label></td>
                <td>{$data.wdmc}</td>
            </tr>
            <tr>
                <td class="text-right"><label for="" class="form-label">明细编号：</label></td>
                <td>{$data.cxsqmxbh}</td>
            </tr>
            <tr>
                <td class="text-right"><label for="" class="form-label">活动描述：</label></td>
                <td>{$data.hdms}</td>
            </tr>
            <tr class="info font-bold text-left">
                <td colspan="2">签到信息</td>
            </tr>
            <tr>
                <td class="text-right"><label for="" class="form-label">签到时间：</label></td>
                <td>{$data.dwsj}</td>
            </tr>
            <tr>
                <td class="text-right"><label for="" class="form-label">定位时间：</label></td>
                <td>{$data.dwsj}</td>
            </tr>
            <tr>
                <td class="text-right"><label for="" class="form-label">签到地址：</label></td>
                <td>{$data.dwdz}</td>
            </tr>
            <tr>
                <td class="text-right"><label for="" class="form-label">签到距离偏差：</label></td>
                <td class="colorRed">{$data.pcjl}</td>
            </tr>
            <tr>
                <td class="text-right" style="height: 160px"><label for="" class="form-label">签到地图：</td>
                <td></td>
            </tr>
            <tr>
                <td class="text-right" style="height: 80px"><label for="" class="form-label">签到图片：</label></td>
                <td>
                    <div style="width: 70px;height: 70px"><img src="{$data.hdzp}" alt=""></div>
                </td>
            </tr>
        </table>
        <table class="table-bordered table bud_hei">
            <tr class="font-bold info">
                <td>点评信息</td>
            </tr>
        </table>
        <table class="table-bordered table bud_hei">
            <tr>
                <td>本次点评意见:</td>
            </tr>
            <tr>
                <td><textarea name="dpxx" id="" class="form-control"
                              style="resize: none;height: 120px;width: 100%">{$data.dpxx}</textarea></td>
            </tr>
        </table>
        <div class="text-center padding-10">
            <button class="btn btn-success" type="button" id="shtg">审核通过</button>
            <span class="lr_5"></span>
            <button class="btn btn-warning" type="button" id="cxzg">重新整改</button>
        </div>
    </form>
</div>
<!-- 全局js -->
{include file="Public/footer"}

<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/common.js"></script>

</body>

</html>
<script>
    $(function () {
        $('#shtg').on('click',function () {
            var dpxx = $('[name=dpxx]').val()
            $.post('{:url("shtg")}',{dpxx:dpxx,id:'{:request()->param("id")}'},function (data) {
                if(data.success){
                    swal({title:data.msg},function () {
                        history.back()
                    })
                }else{
                    swal(data.msg,'','error')
                }
            },'json')
        })
        $('#cxzg').on('click',function () {
            var dpxx = $('[name=dpxx]').val()
            $.post('{:url("cxzg")}',{dpxx:dpxx,id:'{:request()->param("id")}'},function (data) {
                if(data.success){
                    swal({title:data.msg},function () {
                        history.back()
                    })
                }else{
                    swal(data.msg,'','error')
                }
            },'json')
        })
    })
</script>